import { MenuNodeInterface } from "@/model/AppModel";
import { GRANT_TYPE } from "@/config/constVar";

/**
 * 完整的菜单权限列表
 */
export const menus: MenuNodeInterface[] = [
  {
    id: 2,
    title: "门店管理",
    icon: require("@/assets/pages/cs.svg"),
    pageName: "Cmp",
  },
  {
    id: 3,
    title: "员工管理",
    icon: require("@/assets/pages/cs.svg"),
    pageName: "BizUser",
  },
  {
    id: 4,
    title: "卡券模板",
    icon: require("@/assets/pages/cs.svg"),
    pageName: "ECardRule",
  },
  {
    id: 5,
    title: "运维人员",
    icon: require("@/assets/pages/cs.svg"),
    pageName: "MgrUser",
    vxList: [<number>GRANT_TYPE.getCode("ADMIN")]
  },
  {
    id: 6,
    title: "视频挂载",
    icon: require("@/assets/pages/cs.svg"),
    pageName: "DyVideo",
  },
]


/**
 * 按钮权限
 * 默认都有 增删改
 */
let btnList = {
  // [GRANT_TYPE.getCode("GLY")]: {
  //   //帐号管理
  //   OusrAccount: ["chagngepassword"]
  // }
}

export { btnList }